var div = $("div").addClass("test");
div.removeClass("test");
var pass = true;
for ( var i = 0; i &lt; div.size(); i++ ) {
 if ( div.get(i).className.indexOf("test") != -1 ) pass = false;
}
ok( pass, "Remove Class" );